package dao

import (
	"log"
	"mygin_project/model"
	"mygin_project/tool"
)

type SmsDao struct {
	*tool.Orm
}

func (dao *SmsDao) InsertData(sms model.SmsCode) bool  {

	result, err := dao.InsertOne(&sms)
	if err != nil {
		log.Printf("dao InsertOne wrong %s", err.Error())
		return false
	}
	return result > 0
}
